package com.baizhi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("layui_ems")
public class Employee {
    @TableId(type = IdType.AUTO)
    private int emsId;
    private String emsName;
    private double salary;
    private String picPath;
    private int deptId;
    @TableField(exist = false)
    private Depart depart;

    public Employee(int emsId, String emsName, double salary, String picPath, int deptId, Depart depart) {
        this.emsId = emsId;
        this.emsName = emsName;
        this.salary = salary;
        this.picPath = picPath;
        this.deptId = deptId;
        this.depart = depart;
    }

    public Employee() {
    }

    @Override
    public String toString() {
        return "Employee{" +
                "emsId=" + emsId +
                ", emsName='" + emsName + '\'' +
                ", salary=" + salary +
                ", picPath='" + picPath + '\'' +
                ", deptId=" + deptId +
                ", depart=" + depart +
                '}';
    }

    public int getEmsId() {
        return emsId;
    }

    public void setEmsId(int emsId) {
        this.emsId = emsId;
    }

    public String getEmsName() {
        return emsName;
    }

    public void setEmsName(String emsName) {
        this.emsName = emsName;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public Depart getDepart() {
        return depart;
    }

    public void setDepart(Depart depart) {
        this.depart = depart;
    }
}
